package org.jeecg.modules.demo.projectmanagement.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.projectmanagement.entity.ProjectInfo;
import org.jeecg.modules.demo.projectmanagement.entity.ProjectManagement;
import org.jeecg.modules.demo.projectmanagement.mapper.ProjectManagementMapper;
import org.jeecg.modules.demo.projectmanagement.service.IProjectManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Description: 项目管理
 * @Author: jeecg-boot
 * @Date: 2021-12-31
 * @Version: V1.0
 */
@Service
public class ProjectManagementServiceImpl extends ServiceImpl<ProjectManagementMapper, ProjectManagement> implements IProjectManagementService {
    @Autowired
    private ProjectManagementMapper projectManagementMapper;

    // 根据分组id查询
    @Override
    public List<ProjectInfo> getListByGroupId(Integer pageNo, Integer pageSize, String storeId, String groupId) {
        return projectManagementMapper.getListByGroupId(pageNo, pageSize, storeId, groupId);
    }

    @Override
    public List<Map<String, Object>> serveList(String storeId, String projectId) {
        return projectManagementMapper.serveList(storeId, projectId);
    }

    @Override
    public List<Map<String, Object>> shopList(String storeId, String projectId) {
        return projectManagementMapper.shopList(storeId, projectId);
    }

    @Override
    public Integer getVolumeById(String id) {
        return projectManagementMapper.getVolumeById(id);
    }

    @Override
    public void updateVolume(String storeId) {
        projectManagementMapper.updateVolume(storeId);
    }

    @Override
    public List<ProjectManagement> listEx(String storeId, String name) {
        return projectManagementMapper.listEx(storeId, name);
    }

    @Override
    public List<Map<String, Object>> search(Map<String, Object> map) {
        return projectManagementMapper.search(map);
    }
}
